package com.intelligentcar.springboot.service.serverImpl;

import com.intelligentcar.springboot.bean.News;
import com.intelligentcar.springboot.mapper.NewsMapper;
import com.intelligentcar.springboot.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;


@Service
public class NewsServerImpl implements NewsService {

    @Autowired
    private NewsMapper newsMapper;

    @Override
    public List<News> LookLook(News news) {
        return newsMapper.LookLook(news);
    }

    @Override
    public List<News> LookaddTime(String addTime) {
        return newsMapper.LookaddTime(addTime);
    }

    @Override
    public List<News> Looknews() {
        return newsMapper.Looknews();
    }

    @Override
    public int selectNews() {
        return newsMapper.selectNews();
    }


    @Override
    public int update(News news) {
        return newsMapper.update(news);
    }

    @Override
    public int delete(long id) {
        return newsMapper.delete(id);
    }

    @Override
    public int add(News news) {
        return newsMapper.add(news);
    }

}
